Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run PixelDataThread Application Events in SYSTEM Thread Pool #155

Merged
merged 4 commits into from
Mar 7, 2023

Conversation

kkoz
Copy link
Contributor

@kkoz kkoz commented Jan 27, 2023

Fixes #154. As outlined in the issue, the thread pool that is used for USER and BACKGROUND priority tasks is the same and is set up with an unbounded queue. Because of this, the maximum number of threads that can be active at one time is whatever the core pool size is set to - in this case minThreads. Having any limit on the maximum number of threads is an issue if you have dependent tasks, which we do. In this PR, we change the application event tasks to be run at SYSTEM priority, which means they are run in a different, unbounded thread pool. This way, these tasks will never be blocked by the dependent tasks, preventing deadlock. Javadocs were also added to explain what the ThreadPool constructor parameters actually do.

@kkoz
Copy link
Contributor Author

kkoz commented Feb 22, 2023

@jburel I updated omero-server.properties as you requested in ome/omero-documentation#2292. Is there anything else that needs to be done for this PR to be tested/merged?

build.gradle Outdated
@@ -5,7 +5,7 @@ plugins {
}

group = "org.openmicroscopy"
version = "5.6.6-SNAPSHOT"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed.
This will be changed post release

@jburel
Copy link
Member

jburel commented Feb 24, 2023

Regarding the comment on ome/omero-documentation#2292 (comment)
Do you want to create an issue for describing a possible "deprecation" process?

@kkoz
Copy link
Contributor Author

kkoz commented Feb 27, 2023

@jburel created #159 summarizing the issue and describing a possible deprecation process.

@jburel jburel merged commit 955f350 into ome:master Mar 7, 2023
@imagesc-bot
Copy link

This pull request has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/scaling-up-pyramid-generation-in-omero-server/81041/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Race conditions and bugs with ome.services.util.Executor
4 participants